﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WMSWebApi.Models;

namespace WMSWebApi.Interface
{
    /// <summary>
    /// 工位接口
    /// </summary>
    public interface IStations
    {
        /// <summary>
        /// 查询所有工位
        /// </summary>
        /// <returns></returns>
        IEnumerable<StationsTable> GetAll();
        /// <summary>
        /// 查询单个工位
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        int Get(string name);
        /// <summary>
        /// 添加工位
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        int Add(StationsTable item);
        /// <summary>
        /// 删除工位
        /// </summary>
        /// <param name="id"></param>
        int Delete(int id);
        /// <summary>
        /// 修改工位
        /// </summary>
        /// <param name="id"></param>
        int Update(StationsTable item);
    }
}
